import request from '@/utils/request'
//命名：userRegisterService-->user模块+Register注册+Service请求服务
//注册接口
export const userRegisterService = ({ username, password, repassword }) =>
  request.post('/api/reg', { username, password, repassword })

// 登录接口
export const userLoginService = ({ username, password }) =>
  request.post('api/login', { username, password })

//获取用户信息
export const userGetInfoService = () => request.get('/my/userinfo')